package com.wanxi.test;

import java.math.BigDecimal;

public class Phone {
    String brand;
    //    一般价格或者精确度要求比较高的，用BigDecimal
    BigDecimal price;

    public void call() {
        System.out.println("打电话");
    }

    public void sendMessage() {
        System.out.println("发短信");
    }

    @Override
    public String toString() {
        return "Phone{" +
                "brand='" + brand + '\'' +
                ", price=" + price +
                '}';
    }
}
